home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2345 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  44 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: cs.utexas.edu!utnut!utinfo!news
  3. From: Norman Baccari <normb@gpu.utcc.utoronto.ca>
  4. Subject: Opening Libraries "Quietly"
  5. X-Nntp-Posting-Host: control3.utcc.utoronto.ca
  6. Content-Type: text/plain; charset=us-ascii
  7. Message-ID: <DLzwBH.4Eu@utcc.utoronto.ca>
  8. Sender: news@utcc.utoronto.ca (News)
  9. Content-Transfer-Encoding: 7bit
  10. Organization: UTCC Campus Access
  11. Mime-Version: 1.0
  12. Date: Tue, 30 Jan 1996 13:04:29 GMT
  13. X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
  14.  
  15.  
  16.  
  17. Two Questions...
  18.  
  19. From what I understand, when calling OpenLib() this causes the
  20. library thats being opened to call its own init proceedure.
  21. I want to open the library to get Ver/Rev and id_string and 
  22. quietly leave without affecting anything. When I do this now
  23. some libraries do there "init thing" and will try and run
  24. themselves. Toolmanager.library will do this and so does
  25. vmm.library. In an extreme case the system will crash on the
  26. OpenLib() as it does when the amos.library opened. Is there a
  27. way to get the info I want from any disk based library,
  28. quietly & legally?
  29.  
  30. I also need to prevent "non libraries" from being opened. The
  31. library being opened is a user passed argument. If the user
  32. passed a file thats not a library then OpenLib() will crash.
  33. Can I interogate the file internally to detect if its actually
  34. a library that can be opened by OpenLib()?
  35.  
  36.  
  37. Thanks in advance....
  38.  
  39. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  40. Norman Baccari   normb@gpu.utcc.utoronto.ca    Toronto,Ontario Canada
  41. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  42.  
  43.  
  44.